const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true,
    devServer: {
        port: 8082,
        proxy: {
            '/api': {
                target: 'http://localhost:8080',
                changeOrigin: true,
                pathRewrite: {
                    '^/api': ''
                },
                ws: false,
            },
            '/geoapi': {
                target: 'http://localhost:8081/geoserver',
                changeOrigin: true,
                pathRewrite: {
                    '^/geoapi': ''
                },
                ws: false,
            },
            '/transform': {
                target: 'https://api.map.baidu.com',
                ws: false,
                changeOrigin: true,
                pathRewrite: {
                    '^/transform': ''
                }
            }
        }
    },
})
